<?php
use think\facade\Route;


//验证码
Route::post('sentcode','user/user/SentCode');
//注册
Route::post('register','user/user/register');
//登录
Route::post('login','user/user/login');
//banner
Route::post('index','user/banner/index');
//用户查询
Route::post('SelectAdmin','user/User/SelectAdmin')->middleware(\api\user\middleware\CheckToken::class);
//用户修改
Route::post('edit','user/User/edit');
//收货地址添加
Route::post('AddAddress','user/User/AddAddress');
//收货地址查看
Route::post('address','user/User/address');
//收货地址修改
Route::post('updateAddress','user/User/updateAddress');
//收货地址删除
Route::post('DeleteAddress','user/User/DeleteAddress');
//支付
Route::post('money','user/User/money')->middleware(\api\user\middleware\CheckToken::class);
Route::post('create-order','user/Order/createOrder')->middleware(\api\user\middleware\CheckToken::class);
Route::post('create-pay','user/Pay/PayCreate')->middleware(\api\user\middleware\CheckToken::class);

//Route::get('test', function () {
//   return cmf_password(123456);
//});
Route::post('Express','user/Express/ExpressApi');
